package com.journey.org.ui.knowledge

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.journey.org.BR
import com.journey.org.R
import com.journey.org.databinding.FragmentKnowledgeBinding
import com.mvvmhabit.org.base.BaseFragment
import com.mvvmhabit.org.base.BaseLazyFragment

/**
 * @Date: 2020/11/17 14:20
 * @Author:小妖
 * @Description: 知识
 */
class KnowLedgeFragment : BaseLazyFragment<FragmentKnowledgeBinding, KnowLedgeViewModel>() {
    override fun initVariableId(): Int = BR.viewModel

    override fun initViewModel(): Class<KnowLedgeViewModel> = KnowLedgeViewModel::class.java

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.fragment_knowledge

    override fun lazyLoadData() {
        mViewModel?.loadPlayAndroidBanner()
        // mViewModel?.loadPlayAndroidHomeList()
    }
}